<?php
/*
* Author: Nguyen Hai Nam
* Plugin: HotNews
* Desc	: Introduce pick.vn and sidle pic
* Date	: 12/12/2011
*/
class HotNewsPlugin extends Pick_Core_Plugin{
	
	function HotNewsPlugin(){
		parent::Pick_Core_Plugin();
		$this->namePlugin = "hotnews";
		$this->descriptionPlugin = "This is hot news of news pages";
	}
	public function getContent(){
		$news = new Pick_Dao_News();
		$arrObjNews = $news->getObjects(1, " status=1 AND hot=1 ", array('date_created'=>"DESC"), 10);
		if(isset($arrObjNews['data']))
			$this->template->assign('arrObjNews', $arrObjNews['data']);
	}
}